printer 2.2.1
Loading...
Searching...
No Matches
Printer Device Settings

Settings for registers of Printer Click driver. More...

Macros

#define PRINTER_CMD_EOT   0x04
 Printer control commands.
#define PRINTER_CMD_ENQ   0x05
#define PRINTER_CMD_HT   0x09
#define PRINTER_CMD_LF   0x0A
#define PRINTER_CMD_CR   0x0D
#define PRINTER_CMD_DLE   0x10
#define PRINTER_CMD_DC4   0x14
#define PRINTER_CMD_ESC   0x1B
#define PRINTER_CMD_FS   0x1C
#define PRINTER_CMD_GS   0x1D
#define PRINTER_COM_BAUD_RATE_9600   0x00
 Printer communication mode settings.
#define PRINTER_COM_BAUD_RATE_19200   0x01
#define PRINTER_COM_BAUD_RATE_38400   0x02
#define PRINTER_COM_BAUD_RATE_57600   0x03
#define PRINTER_COM_BAUD_RATE_115200   0x04
#define PRINTER_COM_FLOW_CTRL_OFF   0x00
#define PRINTER_COM_FLOW_CTRL_SW   0x01
#define PRINTER_COM_FLOW_CTRL_HW   0x02
#define PRINTER_HEAD_MM58_FTP628MCL101   0x00
 Printer printer head settings.
#define PRINTER_HEAD_MM80_FTP638MCL101   0x01
#define PRINTER_HEAD_MM58_LTP02_245_13   0x02
#define PRINTER_HEAD_MM58_LTP02_245_C1   0x03
#define PRINTER_FONT_TYPE_NORMAL   0x00
 Printer font type settings.
#define PRINTER_FONT_TYPE_ITALIC   0x02
#define PRINTER_FONT_TYPE_BOLD   0x08
#define PRINTER_FONT_TYPE_DOUBLE_HEIGHT   0x10
#define PRINTER_FONT_TYPE_DOUBLE_WIDTH   0x20
#define PRINTER_FONT_TYPE_REVERSE   0x40
#define PRINTER_FONT_TYPE_UNDERLINE   0x80
#define PRINTER_FONT_SIZE_SMALL   0x01
 Printer font size settings.
#define PRINTER_FONT_SIZE_LARGE   0x02
#define PRINTER_ALIGN_LEFT   0x00
 Printer horizontal align settings.
#define PRINTER_ALIGN_CENTER   0x01
#define PRINTER_ALIGN_RIGHT   0x02
#define PRINTER_GRAYSCALE_0   0x00
 Printer grayscale settings.
#define PRINTER_GRAYSCALE_1   0x01
#define PRINTER_GRAYSCALE_2   0x02
#define PRINTER_GRAYSCALE_3   0x03
#define PRINTER_GRAYSCALE_4   0x04
#define PRINTER_GRAYSCALE_5   0x05
#define PRINTER_GRAYSCALE_6   0x06
#define PRINTER_GRAYSCALE_7   0x07
#define PRINTER_GRAYSCALE_8   0x08
#define PRINTER_PICTURE_TYPE_NORMAL   0x00
 Printer picture settings.
#define PRINTER_BARCODE_SYS_UPCA   0x00
 Printer barcode settings.
#define PRINTER_BARCODE_SYS_UPCE   0x01
#define PRINTER_BARCODE_SYS_EAN13   0x02
#define PRINTER_BARCODE_SYS_EAN8   0x03
#define PRINTER_BARCODE_SYS_CODE39   0x04
#define PRINTER_BARCODE_SYS_ITF25   0x05
#define PRINTER_BARCODE_SYS_CODABAR   0x06
#define PRINTER_BARCODE_SYS_CODE93   0x07
#define PRINTER_BARCODE_SYS_CODE128   0x08
#define PRINTER_CB_STATE_DEFAULT   0x00
 Printer printer callback settings.
#define PRINTER_CB_STATE_PAPEROUT   0x04
#define PRINTER_CB_STATE_OVERHEAT   0x08
#define PRINTER_BITMAP_LOCATION_1   0x01
 Printer bitmap settings.
#define PRINTER_BITMAP_LOCATION_2   0x02
#define PRINTER_BITMAP_LOCATION_3   0x03
#define PRINTER_BITMAP_LOCATION_4   0x04
#define PRINTER_BITMAP_ALIGN   0x00
#define PRINTER_BITMAP_MODE_NORMAL   0x00
#define PRINTER_QR_SIZE_21_53   0x00
 Printer QR code settings.
#define PRINTER_QR_SIZE_57_121   0x01
#define PRINTER_QR_SIZE_125_177   0x02
#define PRINTER_QR_ERROR_7_PCT   0x00
#define PRINTER_QR_ERROR_15_PCT   0x01
#define PRINTER_QR_ERROR_25_PCT   0x02
#define PRINTER_QR_ERROR_30_PCT   0x03
#define PRINTER_READY_TIMEOUT   5000
 Printer device ready timeout.
#define PRINTER_TX_DRV_BUFFER_SIZE   500
 Printer driver buffer size.
#define PRINTER_RX_DRV_BUFFER_SIZE   100

Detailed Description

Settings for registers of Printer Click driver.

Macro Definition Documentation

◆ PRINTER_ALIGN_CENTER

#define PRINTER_ALIGN_CENTER   0x01

◆ PRINTER_ALIGN_LEFT

#define PRINTER_ALIGN_LEFT   0x00

Printer horizontal align settings.

Specified setting for horizontal align of Printer Click driver.

◆ PRINTER_ALIGN_RIGHT

#define PRINTER_ALIGN_RIGHT   0x02

◆ PRINTER_BARCODE_SYS_CODABAR

#define PRINTER_BARCODE_SYS_CODABAR   0x06

◆ PRINTER_BARCODE_SYS_CODE128

#define PRINTER_BARCODE_SYS_CODE128   0x08

◆ PRINTER_BARCODE_SYS_CODE39

#define PRINTER_BARCODE_SYS_CODE39   0x04

◆ PRINTER_BARCODE_SYS_CODE93

#define PRINTER_BARCODE_SYS_CODE93   0x07

◆ PRINTER_BARCODE_SYS_EAN13

#define PRINTER_BARCODE_SYS_EAN13   0x02

◆ PRINTER_BARCODE_SYS_EAN8

#define PRINTER_BARCODE_SYS_EAN8   0x03

◆ PRINTER_BARCODE_SYS_ITF25

#define PRINTER_BARCODE_SYS_ITF25   0x05

◆ PRINTER_BARCODE_SYS_UPCA

#define PRINTER_BARCODE_SYS_UPCA   0x00

Printer barcode settings.

Specified setting for barcode of Printer Click driver.

◆ PRINTER_BARCODE_SYS_UPCE

#define PRINTER_BARCODE_SYS_UPCE   0x01

◆ PRINTER_BITMAP_ALIGN

#define PRINTER_BITMAP_ALIGN   0x00

◆ PRINTER_BITMAP_LOCATION_1

#define PRINTER_BITMAP_LOCATION_1   0x01

Printer bitmap settings.

Specified setting for bitmap of Printer Click driver.

◆ PRINTER_BITMAP_LOCATION_2

#define PRINTER_BITMAP_LOCATION_2   0x02

◆ PRINTER_BITMAP_LOCATION_3

#define PRINTER_BITMAP_LOCATION_3   0x03

◆ PRINTER_BITMAP_LOCATION_4

#define PRINTER_BITMAP_LOCATION_4   0x04

◆ PRINTER_BITMAP_MODE_NORMAL

#define PRINTER_BITMAP_MODE_NORMAL   0x00

◆ PRINTER_CB_STATE_DEFAULT

#define PRINTER_CB_STATE_DEFAULT   0x00

Printer printer callback settings.

Specified setting for printer callback of Printer Click driver.

◆ PRINTER_CB_STATE_OVERHEAT

#define PRINTER_CB_STATE_OVERHEAT   0x08

◆ PRINTER_CB_STATE_PAPEROUT

#define PRINTER_CB_STATE_PAPEROUT   0x04

◆ PRINTER_CMD_CR

#define PRINTER_CMD_CR   0x0D

◆ PRINTER_CMD_DC4

#define PRINTER_CMD_DC4   0x14

◆ PRINTER_CMD_DLE

#define PRINTER_CMD_DLE   0x10

◆ PRINTER_CMD_ENQ

#define PRINTER_CMD_ENQ   0x05

◆ PRINTER_CMD_EOT

#define PRINTER_CMD_EOT   0x04

Printer control commands.

Specified setting for control commands of Printer Click driver.

◆ PRINTER_CMD_ESC

#define PRINTER_CMD_ESC   0x1B

◆ PRINTER_CMD_FS

#define PRINTER_CMD_FS   0x1C

◆ PRINTER_CMD_GS

#define PRINTER_CMD_GS   0x1D

◆ PRINTER_CMD_HT

#define PRINTER_CMD_HT   0x09

◆ PRINTER_CMD_LF

#define PRINTER_CMD_LF   0x0A

◆ PRINTER_COM_BAUD_RATE_115200

#define PRINTER_COM_BAUD_RATE_115200   0x04

◆ PRINTER_COM_BAUD_RATE_19200

#define PRINTER_COM_BAUD_RATE_19200   0x01

◆ PRINTER_COM_BAUD_RATE_38400

#define PRINTER_COM_BAUD_RATE_38400   0x02

◆ PRINTER_COM_BAUD_RATE_57600

#define PRINTER_COM_BAUD_RATE_57600   0x03

◆ PRINTER_COM_BAUD_RATE_9600

#define PRINTER_COM_BAUD_RATE_9600   0x00

Printer communication mode settings.

Specified setting for communication mode of Printer Click driver.

◆ PRINTER_COM_FLOW_CTRL_HW

#define PRINTER_COM_FLOW_CTRL_HW   0x02

◆ PRINTER_COM_FLOW_CTRL_OFF

#define PRINTER_COM_FLOW_CTRL_OFF   0x00

◆ PRINTER_COM_FLOW_CTRL_SW

#define PRINTER_COM_FLOW_CTRL_SW   0x01

◆ PRINTER_FONT_SIZE_LARGE

#define PRINTER_FONT_SIZE_LARGE   0x02

◆ PRINTER_FONT_SIZE_SMALL

#define PRINTER_FONT_SIZE_SMALL   0x01

Printer font size settings.

Specified setting for font size of Printer Click driver.

◆ PRINTER_FONT_TYPE_BOLD

#define PRINTER_FONT_TYPE_BOLD   0x08

◆ PRINTER_FONT_TYPE_DOUBLE_HEIGHT

#define PRINTER_FONT_TYPE_DOUBLE_HEIGHT   0x10

◆ PRINTER_FONT_TYPE_DOUBLE_WIDTH

#define PRINTER_FONT_TYPE_DOUBLE_WIDTH   0x20

◆ PRINTER_FONT_TYPE_ITALIC

#define PRINTER_FONT_TYPE_ITALIC   0x02

◆ PRINTER_FONT_TYPE_NORMAL

#define PRINTER_FONT_TYPE_NORMAL   0x00

Printer font type settings.

Specified setting for font type of Printer Click driver.

◆ PRINTER_FONT_TYPE_REVERSE

#define PRINTER_FONT_TYPE_REVERSE   0x40

◆ PRINTER_FONT_TYPE_UNDERLINE

#define PRINTER_FONT_TYPE_UNDERLINE   0x80

◆ PRINTER_GRAYSCALE_0

#define PRINTER_GRAYSCALE_0   0x00

Printer grayscale settings.

Specified setting for grayscale of Printer Click driver.

◆ PRINTER_GRAYSCALE_1

#define PRINTER_GRAYSCALE_1   0x01

◆ PRINTER_GRAYSCALE_2

#define PRINTER_GRAYSCALE_2   0x02

◆ PRINTER_GRAYSCALE_3

#define PRINTER_GRAYSCALE_3   0x03

◆ PRINTER_GRAYSCALE_4

#define PRINTER_GRAYSCALE_4   0x04

◆ PRINTER_GRAYSCALE_5

#define PRINTER_GRAYSCALE_5   0x05

◆ PRINTER_GRAYSCALE_6

#define PRINTER_GRAYSCALE_6   0x06

◆ PRINTER_GRAYSCALE_7

#define PRINTER_GRAYSCALE_7   0x07

◆ PRINTER_GRAYSCALE_8

#define PRINTER_GRAYSCALE_8   0x08

◆ PRINTER_HEAD_MM58_FTP628MCL101

#define PRINTER_HEAD_MM58_FTP628MCL101   0x00

Printer printer head settings.

Specified setting for printer head of Printer Click driver.

◆ PRINTER_HEAD_MM58_LTP02_245_13

#define PRINTER_HEAD_MM58_LTP02_245_13   0x02

◆ PRINTER_HEAD_MM58_LTP02_245_C1

#define PRINTER_HEAD_MM58_LTP02_245_C1   0x03

◆ PRINTER_HEAD_MM80_FTP638MCL101

#define PRINTER_HEAD_MM80_FTP638MCL101   0x01

◆ PRINTER_PICTURE_TYPE_NORMAL

#define PRINTER_PICTURE_TYPE_NORMAL   0x00

Printer picture settings.

Specified setting for picture of Printer Click driver.

◆ PRINTER_QR_ERROR_15_PCT

#define PRINTER_QR_ERROR_15_PCT   0x01

◆ PRINTER_QR_ERROR_25_PCT

#define PRINTER_QR_ERROR_25_PCT   0x02

◆ PRINTER_QR_ERROR_30_PCT

#define PRINTER_QR_ERROR_30_PCT   0x03

◆ PRINTER_QR_ERROR_7_PCT

#define PRINTER_QR_ERROR_7_PCT   0x00

◆ PRINTER_QR_SIZE_125_177

#define PRINTER_QR_SIZE_125_177   0x02

◆ PRINTER_QR_SIZE_21_53

#define PRINTER_QR_SIZE_21_53   0x00

Printer QR code settings.

Specified setting for QR code of Printer Click driver.

◆ PRINTER_QR_SIZE_57_121

#define PRINTER_QR_SIZE_57_121   0x01

◆ PRINTER_READY_TIMEOUT

#define PRINTER_READY_TIMEOUT   5000

Printer device ready timeout.

Specified setting for device ready timeout of Printer Click driver.

◆ PRINTER_RX_DRV_BUFFER_SIZE

#define PRINTER_RX_DRV_BUFFER_SIZE   100

◆ PRINTER_TX_DRV_BUFFER_SIZE

#define PRINTER_TX_DRV_BUFFER_SIZE   500

Printer driver buffer size.

Specified size of driver ring buffer.

Note
Increase buffer size if needed.